package com.etcsoft.pagedesigner.handler;

import org.eclipse.core.commands.AbstractHandler;
import org.eclipse.core.commands.ExecutionEvent;
import org.eclipse.core.commands.ExecutionException;
import org.eclipse.ui.handlers.HandlerUtil;

import com.etcsoft.pagedesigner.wizard.BasicWizardDialog;
import com.etcsoft.pagedesigner.wizard.NewLayoutWizard;

/**
 * @author korman21@gmail.com
 */
public class NewLayoutHandler extends AbstractHandler {

    /* (non-Javadoc)
     * @see org.eclipse.core.commands.IHandler#execute(org.eclipse.core.commands.ExecutionEvent)
     */
    @Override
    public Object execute(ExecutionEvent event) throws ExecutionException {
        NewLayoutWizard wizard = new NewLayoutWizard();
        BasicWizardDialog dialog = new BasicWizardDialog(HandlerUtil.getActiveShell(event), wizard);
        dialog.open();

        return null;
    }

}
